package com.ruoyi.classai.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.classai.domain.EwcHomework;
import com.ruoyi.classai.domain.vo.homework.HomeWorkAnalysisVo;
import com.ruoyi.classai.domain.vo.homework.HomeWorkSubStudentVo;
import com.ruoyi.classai.domain.vo.homework.HomeWorkVo;
import org.apache.ibatis.annotations.Param;

/**
 * 课后作业Mapper接口
 * 
 * @author lcj
 * @date 2025-02-28
 */
public interface EwcHomeworkMapper extends BaseMapper<EwcHomework> {

    List<HomeWorkVo> getHomeWorkList(@Param("teacherId") String teacherId,
                                     @Param("className") String className,
                                     @Param("homeworkType") String homeworkType,
                                     @Param("deadlineStart") String deadlineStart,
                                     @Param("deadlineEnd") String deadlineEnd);

    HomeWorkVo getHomeWorkInfo(@Param("homeworkId") String homeworkId, @Param("classId") String classId);

    List<HomeWorkSubStudentVo> getHomeWorkSubStudentList(@Param("homeworkId") String homeworkId, @Param("classId") String classId);

    HomeWorkAnalysisVo getHomeWorkAnalysisInfo(@Param("homeworkId") String homeworkId, @Param("studentId") String studentId);

    List<HomeWorkSubStudentVo> getSubStudentHomeWorkList(@Param("homeworkId") String homeworkId,
                                                         @Param("classId") String classId,
                                                         @Param("studentName") String studentName,
                                                         @Param("homeworkFlag") String homeworkFlag);
}
